Chromium Build
UTM
code: bash
wafuwafu13@wafuwafuserver:~$ python3 --version
Python 3.8.10
wafuwafu13@wafuwafuserver:~/デスクトップ$ git --version
git version 2.25.1
Cloning into 'depot_tools'...
remote: Sending approximately 42.01 MiB ...
remote: Counting objects: 7, done
remote: Finding sources: 100% (7/7)
remote: Total 47915 (delta 32241), reused 47910 (delta 32241)
Receiving objects: 100% (47915/47915), 42.00 MiB | 2.17 MiB/s, done.
Resolving deltas: 100% (32241/32241), done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
code: bash
wafuwafu13@wafuwafuserver:~/デスクトップ$ export PATH="$PATH:/home/wafuwafu13/デスクトップ/depot_tools"
wafuwafu13@wafuwafuserver:~/デスクトップ$ mkdir ~/chromium && cd ~/chromium
wafuwafu13@wafuwafuserver:~/chromium$ fetch --nohooks chromium
Running: gclient root
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Running: gclient config --spec 'solutions = [
{
"name": "src",
"managed": False,
"custom_deps": {},
"custom_vars": {},
},
]
'
Running: gclient sync --nohooks
Cloning into '/home/wafuwafu13/chromium/_gclient_src_vpaq747e'...
remote: Sending approximately 29.72 GiB ...
remote: Counting objects: 607005, done
remote: Finding sources: 100% (1271/1271)
Receiving objects: 29% (5106252/17298608), 2.10 GiB | 325.00 KiB/s
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
全然進まない(1時間で25%)
code: bash
wafuwafu13@wafuwafuserver:~/chromium$ git config --global http.postBuffer 128M
wafuwafu13@wafuwafuserver:~$ mkdir ~/chromium && cd ~/chromium
wafuwafu13@wafuwafuserver:~/chromium$ fetch --nohooks chromium
# 全然進まない(1時間で25%)
OSError: [Errno 28] No space left on device: '/home/wafuwafu13/chromium/_bad_scm'
code: bash
Cloning into '/home/wafuwafu13/chromium/_gclient_src_bmyi118n'...
remote: Sending approximately 29.72 GiB ...
remote: Counting objects: 607107, done
remote: Finding sources: 100% (1373/1373)
remote: Total 17298710 (delta 12806376), reused 17298269 (delta 12806376)
Receiving objects: 100% (17298710/17298710), 29.75 GiB | 4.77 MiB/s, done.
Resolving deltas: 100% (12806376/12806376), done.
Checking objects: 100% (67108864/67108864), done.
1>Syncing projects: 0% ( 0/ 2)
Syncing projects: 33% (40/118) src/third_party/highway/src
2:11:14 src/third_party/boringssl/src 2:11:14 src/third_party/devtools-frontend/src 2:11:14 src/third_party/hunspell_dictionaries ...
2:22:48 Resolving deltas: 100% (63228/63228) ----------------------------------------
Warnings:
Conflicting directory /home/wafuwafu13/chromium/src/third_party/catapult moved to /home/wafuwafu13/chromium/_bad_scm/src/third_party/catapult40mr1kiv.
Conflicting directory /home/wafuwafu13/chromium/src/third_party/swiftshader moved to /home/wafuwafu13/chromium/_bad_scm/src/third_party/swiftshader2r2jh8k5.
Conflicting directory /home/wafuwafu13/chromium/src/third_party/sqlite/src moved to /home/wafuwafu13/chromium/_bad_scm/src/third_party/sqlite/srcdhl8zkl9.
Conflicting directory /home/wafuwafu13/chromium/src/third_party/skia moved to /home/wafuwafu13/chromium/_bad_scm/src/third_party/skiaiaf2bcc8.
Conflicting directory /home/wafuwafu13/chromium/src/third_party/icu moved to /home/wafuwafu13/chromium/_bad_scm/src/third_party/icuys12klpt.
Conflicting directory /home/wafuwafu13/chromium/src/third_party/devtools-frontend/src moved to /home/wafuwafu13/chromium/_bad_scm/src/third_party/devtools-frontend/src3hqao8jy.
Conflicting directory /home/wafuwafu13/chromium/src/third_party/tflite/src moved to /home/wafuwafu13/chromium/_bad_scm/src/third_party/tflite/srclb1hdlv2.
Traceback (most recent call last):
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_scm.py", line 546, in update
self._Clone(revision, url, options)
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_scm.py", line 1072, in _Clone
self._Checkout(options, ''.join(remote_ref or revision), quiet=True)
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_scm.py", line 1309, in _Checkout
return self._Capture(checkout_args)
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_scm.py", line 1284, in _Capture
ret = subprocess2.check_output(
File "/home/wafuwafu13/デスクトップ/depot_tools/subprocess2.py", line 258, in check_output
return check_call_out(args, stdout=PIPE, **kwargs)0 File "/home/wafuwafu13/デスクトップ/depot_tools/subprocess2.py", line 220, in check_call_out
raise CalledProcessError(
subprocess2.CalledProcessError: Command 'git checkout --quiet cefb3e0ec3a0580c996f801e854fe02963c03d5c' returned non-zero exit status 128 in /home/wafuwafu13/chromium/src/third_party/perfetto
error: unable to write file docs/data-sources/memory-counters.md
error: unable to write file docs/data-sources/native-heap-profiler.md
error: unable to write file docs/data-sources/syscalls.md
error: unable to write file docs/data-sources/system-log.md
fatal: cannot create directory at 'docs/design-docs': No space left on device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wafuwafu13/デスクトップ/depot_tools/metrics.py", line 291, in print_notice_and_exit
yield
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient.py", line 3233, in <module>
sys.exit(main(sys.argv1:)) File "/home/wafuwafu13/デスクトップ/depot_tools/gclient.py", line 3219, in main
return dispatcher.execute(OptionParser(), argv)
File "/home/wafuwafu13/デスクトップ/depot_tools/subcommand.py", line 252, in execute
return command(parser, args1:) File "/home/wafuwafu13/デスクトップ/depot_tools/gclient.py", line 2773, in CMDsync
ret = client.RunOnDeps('update', args)
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient.py", line 1812, in RunOnDeps
work_queue.flush(revision_overrides, command, args, options=self._options,
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_utils.py", line 976, in flush
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_utils.py", line 67, in reraise
raise value
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_utils.py", line 1053, in run
self.item.run(*self.args, **self.kwargs)
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient.py", line 948, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_scm.py", line 127, in RunCommand
return getattr(self, command)(options, args, file_list)
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_scm.py", line 548, in update
self._DeleteOrMove(options.force)
File "/home/wafuwafu13/デスクトップ/depot_tools/gclient_scm.py", line 190, in _DeleteOrMove
os.makedirs(bad_scm_dir)
File "/home/wafuwafu13/.vpython-root/6507b0/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/home/wafuwafu13/.vpython-root/6507b0/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/home/wafuwafu13/.vpython-root/6507b0/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
OSError: Errno 28 No space left on device: '/home/wafuwafu13/chromium/_bad_scm' Subprocess failed with return code 1.
8GB of RAM. More than 16GB is highly recommended.
https://scrapbox.io/files/61be88dbca032e001f90ad61.png
24GB
10240MB
code: zsh
Cloning into '/home/wafuwafu13/chromium/_gclient_src_k7f5cx60'...
remote: Sending approximately 29.74 GiB ...
remote: Counting objects: 606243, done
remote: Finding sources: 100% (101/101)
Receiving objects: 64% (11158043/17299625), 8.70 GiB | ^C79 MiB/s
Disk Usage
https://scrapbox.io/files/61bfd432647373001dc9b507.png
https://scrapbox.io/files/61bfd47502396b002057a0be.png
128GB
32768MB
fatal: the remote end hung up unexpectedly
code: bash
wafuwafu13@wafuwafuserver:~/chromium$ git config --global http.postBuffer 1024M
Cloning into '/home/wafuwafu13/chromium/_gclient_src_9vitaxl_'...
remote: Sending approximately 29.74 GiB ...
remote: Counting objects: 606501, done
remote: Finding sources: 100% (359/359)
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
1>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://chromium.googlesource.com/chromium/src.git" "/home/wafuwafu13/chromium/_gclient_src_9vitaxl_"' in /home/wafuwafu13/chromium failed; will retry after a short nap... Cloning into '/home/wafuwafu13/chromium/_gclient_src_9vitaxl_'...
remote: Sending approximately 29.74 GiB ...
remote: Counting objects: 220772
Docker
ubuntu:latest
FileNotFoundError: [Errno 2] No such file or directory: '/root/chromium/src'
code: zsh
$ docker exec -it ubuntu /bin/bash
root@063e4dbe9fc3:/# apt-get update
Fetched 17.1 MB in 8s (2070 kB/s)
Reading package lists... Done
root@063e4dbe9fc3:/# adduser wafuwafu13
Adding user `wafuwafu13' ...
Adding new group `wafuwafu13' (1000) ...
Adding new user wafuwafu13' (1000) with group wafuwafu13' ...
Creating home directory `/home/wafuwafu13' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for wafuwafu13
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? Y/n y root@063e4dbe9fc3:/# gpasswd -a wafuwafu13 sudo
Adding user wafuwafu13 to group sudo
root@063e4dbe9fc3:/# python3 --version
bash: python3: command not found
root@063e4dbe9fc3:/# git --version
bash: git: command not found
root@063e4dbe9fc3:/# apt-get install sudo
root@063e4dbe9fc3:/# apt-get install git
root@063e4dbe9fc3:/# apt-get install python3
root@063e4dbe9fc3:/# python3 --version
Python 3.8.10
root@063e4dbe9fc3:/# git --version
git version 2.25.1
root@063e4dbe9fc3:~/chromium# fetch --nohooks chromium
Your platform is missing a supported fetch command. Please use your package manager to install one before continuing:
curl
wget
Alternately, manually download:
To /depot_tools/.cipd_client, and then re-run this command.
/depot_tools/bootstrap_python3: line 32: bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: No such file or directory
cat: /depot_tools/python3_bin_reldir.txt: No such file or directory
/depot_tools/vpython3: line 52: /depot_tools/.cipd_bin/vpython3: No such file or directory
root@063e4dbe9fc3:~/chromium# apt-get install curl wget
root@063e4dbe9fc3:~/chromium# fetch --nohooks chromium
Running: gclient root
Running: gclient config --spec 'solutions = [
{
"name": "src",
"managed": False,
"custom_deps": {},
"custom_vars": {},
},
]
'
Running: gclient sync --nohooks
Cloning into '/root/chromium/_gclient_src_xreh_plj'...
Cloning into '/root/chromium/_gclient_src_xreh_plj'...
Cloning into '/root/chromium/_gclient_src_xreh_plj'...
Cloning into '/root/chromium/_gclient_src_xreh_plj'...
Syncing projects: 100% ( 1/ 1) src
src (ERROR)
----------------------------------------
Traceback (most recent call last):
File "/depot_tools/gclient_scm.py", line 1046, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "/depot_tools/gclient_scm.py", line 1386, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "/depot_tools/gclient_utils.py", line 681, in CheckCallAndFilter
raise subprocess2.CalledProcessError(
0:03:17 _____ Conflicting directory found in /root/chromium/src. Moving to /root/chromium/_bad_scm/srci7m0qi45. ----------------------------------------
Warnings:
Conflicting directory /root/chromium/src moved to /root/chromium/_bad_scm/srci7m0qi45.
Traceback (most recent call last):
File "/depot_tools/gclient_scm.py", line 546, in update
self._Clone(revision, url, options)
File "/depot_tools/gclient_scm.py", line 1046, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "/depot_tools/gclient_scm.py", line 1386, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "/depot_tools/gclient_utils.py", line 681, in CheckCallAndFilter
raise subprocess2.CalledProcessError(
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.vpython-root/434d68/lib/python3.8/shutil.py", line 791, in move
os.rename(src, real_dst)
FileNotFoundError: Errno 2 No such file or directory: '/root/chromium/src' -> '/root/chromium/_bad_scm/srci7m0qi45/src' During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/depot_tools/metrics.py", line 291, in print_notice_and_exit
yield
File "/depot_tools/gclient.py", line 3233, in <module>
sys.exit(main(sys.argv1:)) File "/depot_tools/gclient.py", line 3219, in main
return dispatcher.execute(OptionParser(), argv)
File "/depot_tools/subcommand.py", line 252, in execute
return command(parser, args1:) File "/depot_tools/gclient.py", line 2773, in CMDsync
ret = client.RunOnDeps('update', args)
File "/depot_tools/gclient.py", line 1812, in RunOnDeps
work_queue.flush(revision_overrides, command, args, options=self._options,
File "/depot_tools/gclient_utils.py", line 976, in flush
File "/depot_tools/gclient_utils.py", line 67, in reraise
raise value
File "/depot_tools/gclient_utils.py", line 1053, in run
self.item.run(*self.args, **self.kwargs)
File "/depot_tools/gclient.py", line 948, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File "/depot_tools/gclient_scm.py", line 127, in RunCommand
return getattr(self, command)(options, args, file_list)
File "/depot_tools/gclient_scm.py", line 548, in update
self._DeleteOrMove(options.force)
File "/depot_tools/gclient_scm.py", line 202, in _DeleteOrMove
shutil.move(self.checkout_path, dest_path)
File "/root/.vpython-root/434d68/lib/python3.8/shutil.py", line 811, in move
copy_function(src, real_dst)
File "/root/.vpython-root/434d68/lib/python3.8/shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/root/.vpython-root/434d68/lib/python3.8/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: Errno 2 No such file or directory: '/root/chromium/src' Subprocess failed with return code 1.
ubuntu:16.04
GLIBC_2.25' not found
code: zsh
$ docker pull ubuntu:16.04
root@791f74f0803d:/# apt install curl wget python3 git -y
root@791f74f0803d:/# export PATH="$PATH:/depot_tools"
root@791f74f0803d:/# mkdir ~/chromium && cd ~/chromium
root@791f74f0803d:~/chromium# fetch --nohooks chromium
bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3)
bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found (required by bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3)
bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by bootstrap-2@3.8.10.chromium.23_bin/python3/bin/python3)
cat: /depot_tools/python3_bin_reldir.txt: No such file or directory
#0 go.chromium.org/luci/vpython/venv/config.go:309 - venv.(*Config).resolvePythonInterpreter() #1 go.chromium.org/luci/vpython/venv/config.go:153 - venv.(*Config).resolveRuntime() reason: failed to resolve system Python interpreter
#2 go.chromium.org/luci/vpython/venv/venv.go:143 - venv.With() reason: failed to resolve python runtime
#3 go.chromium.org/luci/vpython/run.go:60 - vpython.Run() #4 go.chromium.org/luci/vpython/application/application.go:327 - application.(*application).mainImpl() #5 go.chromium.org/luci/vpython/application/application.go:416 - application.(*Config).Main.func1() #6 go.chromium.org/luci/vpython/application/support.go:46 - application.run() #7 go.chromium.org/luci/vpython/application/application.go:415 - application.(*Config).Main() #8 vpython/main.go:112 - main.mainImpl() #9 vpython/main.go:118 - main.main() #10 runtime/proc.go:225 - runtime.main() #11 runtime/asm_arm64.s:1130 - runtime.goexit() M1 Mac
M1の最大の特徴は、CPUのISA(命令セットアーキテクチャ)がx86/x64(あるいはIA32/Intel 64)から、Armに変わっていることだ。
XCodeをインストール
code: zsh
$ ls xcode-select -p/Platforms/MacOSX.platform/Developer/SDKs
ls: /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs: No such file or directory
Installling components...
code: zsh
~
$ xcode-select -v
xcode-select version 2392.
~
Cloning into 'depot_tools'...
remote: Total 47915 (delta 32247), reused 47915 (delta 32247)
Receiving objects: 100% (47915/47915), 41.98 MiB | 542.00 KiB/s, done.
Resolving deltas: 100% (32247/32247), done.
~
$ pwd
/Users/wafuwafu13
~
$ export PATH="$PATH:/Users/wafuwafu13/depot_tools"
~
$ git config --global core.precomposeUnicode true
~
$ mkdir chromium && cd chromium
~/chromium
$ fetch chromium
Running: gclient root
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Running: gclient config --spec 'solutions = [
{
"name": "src",
"managed": False,
"custom_deps": {},
"custom_vars": {},
},
]
'
Running: gclient sync
Cloning into '/Users/wafuwafu13/chromium/_gclient_src_p27rh_82'...
remote: Finding sources: 100% (216/216)
remote: Total 17299382 (delta 12807404), reused 17299326 (delta 12807404)
Receiving objects: 100% (17299382/17299382), 29.73 GiB | 1.52 MiB/s, done.
Resolving deltas: 100% (12807404/12807404), done.
Syncing projects: 100% (116/116), done.
Hook 'vpython3 -vpython-spec src/.vpython3 -vpython-tool install' took 29.71 secs
Running hooks: 13% (16/119) mac_toolchain
________ running 'python3 src/build/mac_toolchain.py' in '/Users/wafuwafu13/chromium'
Skipping Mac toolchain installation for mac
Running hooks: 15% (18/119) clang
________ running 'python3 src/tools/clang/scripts/update.py' in '/Users/wafuwafu13/chromium'
Hook 'python3 src/tools/clang/scripts/update.py' took 20.67 secs
Running hooks: 19% (23/119) objdump
________ running 'python3 src/tools/clang/scripts/update.py --package=objdump' in '/Users/wafuwafu13/chromium'
Running hooks: 23% (28/119) clang_format_mac
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-clang-format -s src/buildtools/mac/clang-format.sha1' in '/Users/wafuwafu13/chromium'
0> Downloading src/buildtools/mac/clang-format@5ba974b3b37f9f4e3b44fdde11d7ef2ab71619ab...
Downloading 1 files took 17.600029 second(s)
Hook 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-clang-format -s src/buildtools/mac/clang-format.sha1' took 17.64 secs
Running hooks: 27% (33/119) test_fonts
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-fonts -s src/third_party/test_fonts/test_fonts.tar.gz.sha1' in '/Users/wafuwafu13/chromium'
0> Downloading src/third_party/test_fonts/test_fonts.tar.gz@cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb...
0> Extracting 33 entries from src/third_party/test_fonts/test_fonts.tar.gz to src/third_party/test_fonts/test_fonts
Downloading 1 files took 13.996752 second(s)
Hook 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-fonts -s src/third_party/test_fonts/test_fonts.tar.gz.sha1' took 14.04 secs
Hook 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_auth --quiet --bucket chromium-webrtc-resources -d src/third_party/opus/tests/resources' took 31.80 secs
Running hooks: 31% (38/119) wasm_fuzzer
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-fuzzer -s src/v8/test/fuzzer/wasm_corpus.tar.gz.sha1' in '/Users/wafuwafu13/chromium'
0> Downloading src/v8/test/fuzzer/wasm_corpus.tar.gz@a1493bb387aed38462c49f4351dc47e79e4b784b...
0> Extracting 47197 entries from src/v8/test/fuzzer/wasm_corpus.tar.gz to src/v8/test/fuzzer/wasm_corpus
Downloading 1 files took 11.637315 second(s)
Hook 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-fuzzer -s src/v8/test/fuzzer/wasm_corpus.tar.gz.sha1' took 11.68 secs
Running hooks: 34% (41/119) node_mac_arm64
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-nodejs/16.13.0 -s src/third_party/node/mac/node-darwin-arm64.tar.gz.sha1' in '/Users/wafuwafu13/chromium'
0> Downloading src/third_party/node/mac/node-darwin-arm64.tar.gz@31859fc1fa0994a95f44f09c367d6ff63607cfde...
0> Extracting 3247 entries from src/third_party/node/mac/node-darwin-arm64.tar.gz to src/third_party/node/mac/node-darwin-arm64
Downloading 1 files took 15.758153 second(s)
Hook 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-nodejs/16.13.0 -s src/third_party/node/mac/node-darwin-arm64.tar.gz.sha1' took 15.80 secs
Running hooks: 36% (43/119) webui_node_modules
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-nodejs -s src/third_party/node/node_modules.tar.gz.sha1' in '/Users/wafuwafu13/chromium'
0> Downloading src/third_party/node/node_modules.tar.gz@31d731fb82ea62a6dae24d2bdfe6f0aa6164b949...
0> Extracting 8436 entries from src/third_party/node/node_modules.tar.gz to src/third_party/node/node_modules
Downloading 1 files took 9.492579 second(s)
Running hooks: 43% (52/119) zucchini_testdata
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --num_threads=4 --bucket chromium-binary-patching/zucchini_testdata --recursive -d src/components/zucchini' in '/Users/wafuwafu13/chromium'
1> Downloading src/components/zucchini/testdata/chrome64_1.exe@4970ef6f342f6a0da9ae7a4ed462f93ef68f142c...
3> Downloading src/components/zucchini/testdata/setup1.exe@5d0e8fed8e9e091e184adb2e2e0e668def9cd2c5...
0> Downloading src/components/zucchini/testdata/chrome64_2.exe@c3a974589d50956a3c8c17572fee078b9276ad9b...
2> Downloading src/components/zucchini/testdata/setup2.exe@12194273e8d509b6e81e4a6b63621081e1426028...
3> Downloading src/components/zucchini/fuzzers/testdata/new_eventlog_provider.dll@89ce67035d2d2dae33cb2d98d4762e955b93df95...
1> Downloading src/components/zucchini/fuzzers/testdata/old_eventlog_provider.dll@c80fdce994ba043956e192f650d894555460ff9b...
Downloading 6 files took 1073.765101 second(s)
Hook 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --num_threads=4 --bucket chromium-binary-patching/zucchini_testdata --recursive -d src/components/zucchini' took 1074.65 secs
Running hooks: 50% (60/119) mediapipe_integration_testdata
________ running 'python3 src/content/test/gpu/gpu_tests/mediapipe_update.py' in '/Users/wafuwafu13/chromium'
0> Downloading /Users/wafuwafu13/chromium/src/content/test/data/gpu/mediapipe_zip/mediapipe_chromium_tests.zip@1d6ca505c384ef8f5af14e7958f62d54ec126356...
Downloading 1 files took 27.597229 second(s)
Hook 'python3 src/content/test/gpu/gpu_tests/mediapipe_update.py' took 28.11 secs
Running hooks: 52% (63/119) subresource-filter-ruleset
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-ads-detection -s src/third_party/subresource-filter-ruleset/data/UnindexedRules.sha1' in '/Users/wafuwafu13/chromium'
0> Downloading src/third_party/subresource-filter-ruleset/data/UnindexedRules@a703507a694340bac1a78ce6e54dfbd641062da5...
Downloading 1 files took 6.140847 second(s)
Hook 'python3 src/testing/generate_location_tags.py --out src/testing/location_tags.json' took 88.53 secs
Running hooks: 100% (119/119), done.
Running: git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all'
Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
Running: git config diff.ignoreSubmodules all
Command: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory
code: zsh
~/chromium/src
$ gn gen out/Default
ERROR at //build/config/mac/mac_sdk.gni:93:19: Script returned non-zero exit code.
_mac_sdk_result = exec_script(script_name, sdk_info_args, "scope")
^----------
Current dir: /Users/wafuwafu13/chromium/src/out/Default/
Command: python3 /Users/wafuwafu13/chromium/src/build/config/apple/sdk_info.py macosx
Returned 1.
stderr:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "/Users/wafuwafu13/chromium/src/build/config/apple/sdk_info.py", line 167, in <module>
FillXcodeVersion(settings, args.developer_dir)
File "/Users/wafuwafu13/chromium/src/build/config/apple/sdk_info.py", line 80, in FillXcodeVersion
lines = subprocess.check_output(['xcodebuild',
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
See //tools/mac/power/BUILD.gn:10:1: whence it was imported.
import("//build/config/mac/mac_sdk.gni")
^--------------------------------------
See //BUILD.gn:356:7: which caused the file to be included.
"//tools/mac/power:all",
^----------------------
code: zsh
$ ls xcode-select -p/Platforms/MacOSX.platform/Developer/SDKs
MacOSX.sdk MacOSX12.1.sdk
code: zsh
~/chromium/src
$ gn gen out/Default
objc42353: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1ef27b130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103ef02c8). One of the two will be used. Which one is undefined. objc42353: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1ef27b180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103ef0318). One of the two will be used. Which one is undefined. Done. Made 16424 targets from 2856 files in 2977ms
~/chromium/src
$ autoninja -C out/Default chrome
ninja: Entering directory `out/Default'
~/chromium/src
$ out/Default/Chromium.app/Contents/MacOS/Chromium
https://scrapbox.io/files/61c14690a88bab00201fba4e.png
Intel Mac
code: zsh
~/chromium/src
$ gn gen out/Default
ERROR at //build/config/mac/mac_sdk.gni:93:19: Script returned non-zero exit code.
_mac_sdk_result = exec_script(script_name, sdk_info_args, "scope")
^----------
Current dir: /Users/wafuwafu13/chromium/src/out/Default/
Command: python3 /Users/wafuwafu13/chromium/src/build/config/apple/sdk_info.py macosx
Returned 1.
stderr:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "/Users/wafuwafu13/chromium/src/build/config/apple/sdk_info.py", line 167, in <module>
FillXcodeVersion(settings, args.developer_dir)
File "/Users/wafuwafu13/chromium/src/build/config/apple/sdk_info.py", line 80, in FillXcodeVersion
lines = subprocess.check_output(['xcodebuild',
File "/usr/local/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/local/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
See //build/config/mac/rules.gni:7:1: whence it was imported.
import("//build/config/mac/mac_sdk.gni")
^--------------------------------------
See //BUILD.gn:549:7: which caused the file to be included.
"//net:dump_cache",
^-----------------
CalledProcessError
code: zsh
~/chromium/src
$ ls xcode-select -p/Platforms/MacOSX.platform/Developer/SDKs
MacOSX.sdk MacOSX12.1.sdk
~/chromium/src
$ gn gen out/Default
Done. Made 17179 targets from 2896 files in 9113ms
~/chromium/src
$ autoninja -C out/Default chrome
ninja: Entering directory `out/Default'
328/51481 SOLINK libc++.dylib libc++.dylib.TOC FAILED: libc++.dylib libc++.dylib.TOC
if ! -e "./libc++.dylib" -o ! -e "./libc++.dylib.TOC" || /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "./libc++.dylib" | grep -q LC_REEXPORT_DYLIB ; then TOOL_VERSION=1640046928 ../../build/toolchain/apple/linker_driver.py -Wcrl,strippath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-install_name,@rpath/"libc++.dylib" -fuse-ld=lld -Wl,-fatal_warnings -Wl,--color-diagnostics -stdlib=libc++ -arch x86_64 -no-canonical-prefixes -nostdlib++ -isysroot ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -Wl,-ObjC -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Werror -Wl,-U,_sanitizer_options_link_helper -o "./libc++.dylib" "@./libc++.dylib.rsp" && { /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "./libc++.dylib" | grep LC_ID_DYLIB -A 5; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -gPp "./libc++.dylib" | cut -f1-2 -d' ' | grep -v U$$; true; } > "./libc++.dylib.TOC"; else TOOL_VERSION=1640046928 ../../build/toolchain/apple/linker_driver.py -Wcrl,strippath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-install_name,@rpath/"libc++.dylib" -fuse-ld=lld -Wl,-fatal_warnings -Wl,--color-diagnostics -stdlib=libc++ -arch x86_64 -no-canonical-prefixes -nostdlib++ -isysroot ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -Wl,-ObjC -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../.. -Werror -Wl,-U,_sanitizer_options_link_helper -o "./libc++.dylib" "@./libc++.dylib.rsp" && { /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -l "./libc++.dylib" | grep LC_ID_DYLIB -A 5; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm -gPp "./libc++.dylib" | cut -f1-2 -d' ' | grep -v U$$; true; } > "./libc++.dylib.tmp" && if ! cmp -s "./libc++.dylib.tmp" "./libc++.dylib.TOC"; then mv "./libc++.dylib.tmp" "./libc++.dylib.TOC" ; fi; fi ld64.lld: error: directory not found for option -L/usr/local/opt/openssl@3/lib
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "../../build/toolchain/apple/linker_driver.py", line 291, in <module>
LinkerDriver(sys.argv).run()
File "../../build/toolchain/apple/linker_driver.py", line 116, in run
subprocess.check_call(compiler_driver_args, env=env)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ''../../third_party/llvm-build/Release+Asserts/bin/clang++', '-shared', '-Wl,-install_name,@rpath/libc++.dylib', '-fuse-ld=lld', '-Wl,-fatal_warnings', '-Wl,--color-diagnostics', '-stdlib=libc++', '-arch', 'x86_64', '-no-canonical-prefixes', '-nostdlib++', '-isysroot', '../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk', '-mmacosx-version-min=10.11.0', '-Wl,-ObjC', '-Wl,-rpath,@loader_path/.', '-Wl,-rpath,@loader_path/../../..', '-Werror', '-Wl,-U,_sanitizer_options_link_helper', '-o', './libc++.dylib', '@./libc++.dylib.rsp'' returned non-zero exit status 1 333/51481 CC obj/native_client/src/trusted/validator_ragel/rdfa_validator/validator_x86_64.o ninja: build stopped: subcommand failed.
Parallels Desktop
https://scrapbox.io/files/61bfb801fbfcdc001f9face0.png
こんにちは、フィードバックをお寄せいただきありがとうございます。 Parallels Desktop Lite 1.4.0では、14日間のトライアルでApp Storeベースのサブスクリプションに切り替えました。 サブスクリプションを持たない以前のバージョンのParallels Desktop Liteを実行している既存のユーザーには、無料の1年間サブスクリプションが付与されています。 この特典を利用するには、Parallels Desktop Lite 1.4.0アプリケーションの指示に従ってアカウントを作成してください。
code: bash
parallels@ubuntu-linux-20-04-desktop:~$ sudo apt install git -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs
git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,218 kB/5,245 kB of archives.
After this operation, 37.6 MB of additional disk space will be used.
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Only x86 architectures are currently supported
code: bash
parallels@ubuntu-linux-20-04-desktop:~$ sudo apt-get update
parallels@ubuntu-linux-20-04-desktop:~$ sudo apt install git -y
parallels@ubuntu-linux-20-04-desktop:~$ export PATH="$PATH:/home/parallels/depot_tools"
arallels@ubuntu-linux-20-04-desktop:~/chromium$ fetch --nohooks chromium
Running: gclient root
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Running: gclient config --spec 'solutions = [
{
"name": "src",
"managed": False,
"custom_deps": {},
"custom_vars": {},
},
]
'
Running: gclient sync --nohooks
Cloning into '/home/parallels/chromium/_gclient_src_q997yp8o'...
remote: Sending approximately 29.74 GiB ...
remote: Counting objects: 606671, done
remote: Finding sources: 100% (529/529)
remote: Total 17300053 (delta 12807686), reused 17299931 (delta 12807686)
Receiving objects: 100% (17300053/17300053), 29.74 GiB | 3.55 MiB/s, done.
Resolving deltas: 100% (12807686/12807686), done.
Checking objects: 100% (67108864/67108864), done.
1>Syncing projects: 0% ( 0/ 2)
Syncing projects: 7% ( 9/117) src/chrome/test/data/perf/frame_rate/content
2:45:54 src/buildtools/third_party/libc++/trunk 2:45:54 src/chrome/test/data/perf/canvas_bench 2:45:54 src/chrome/test/data/xr/webvr_info 2:45:54 src/net/third_party/quiche/src 2:45:54 src/third_party/boringssl/src 2:45:54 src/third_party/breakpad/breakpad 2:45:57 src/buildtools/third_party/libc++/trunk 2:45:57 src/chrome/test/data/perf/canvas_bench 2:45:57 src/chrome/test/data/xr/webvr_info 2:45:57 src/net/third_party/quiche/src ...
Syncing projects: 100% (130/130), done.
Running: git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all'
Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
Running: git config diff.ignoreSubmodules all
parallels@ubuntu-linux-20-04-desktop:~/chromium/src$ ./build/install-build-deps.sh
Only x86 architectures are currently supported
Virtual Box(Intel Mac)
10240 MB
120.0GB
重い